package com.ruoyi.basicInfo.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.basicInfo.mapper.PowerPlantPlanMapper;
import com.ruoyi.basicInfo.domain.PowerPlantPlan;
import com.ruoyi.basicInfo.service.IPowerPlantPlanService;

import javax.annotation.Resource;

/**
 * 电厂计划信息Service业务层处理
 * 
 * @author zbw
 * @date 2022-07-16
 */
@Service
public class PowerPlantPlanServiceImpl implements IPowerPlantPlanService 
{
    @Resource
    private PowerPlantPlanMapper powerPlantPlanMapper;

    /**
     * 查询电厂计划信息
     * 
     * @param id 电厂计划信息主键
     * @return 电厂计划信息
     */
    @Override
    public PowerPlantPlan selectPowerPlantPlanById(String id)
    {
        return powerPlantPlanMapper.selectPowerPlantPlanById(id);
    }

    /**
     * 查询电厂计划信息列表
     * 
     * @param powerPlantPlan 电厂计划信息
     * @return 电厂计划信息
     */
    @Override
    public List<PowerPlantPlan> selectPowerPlantPlanList(PowerPlantPlan powerPlantPlan)
    {
        return powerPlantPlanMapper.selectPowerPlantPlanList(powerPlantPlan);
    }

    /**
     * 新增电厂计划信息
     * 
     * @param powerPlantPlan 电厂计划信息
     * @return 结果
     */
    @Override
    public int insertPowerPlantPlan(PowerPlantPlan powerPlantPlan)
    {
        return powerPlantPlanMapper.insertPowerPlantPlan(powerPlantPlan);
    }

    /**
     * 修改电厂计划信息
     * 
     * @param powerPlantPlan 电厂计划信息
     * @return 结果
     */
    @Override
    public int updatePowerPlantPlan(PowerPlantPlan powerPlantPlan)
    {
        return powerPlantPlanMapper.updatePowerPlantPlan(powerPlantPlan);
    }

    /**
     * 批量删除电厂计划信息
     * 
     * @param ids 需要删除的电厂计划信息主键
     * @return 结果
     */
    @Override
    public int deletePowerPlantPlanByIds(String[] ids)
    {
        return powerPlantPlanMapper.deletePowerPlantPlanByIds(ids);
    }

    /**
     * 删除电厂计划信息信息
     * 
     * @param id 电厂计划信息主键
     * @return 结果
     */
    @Override
    public int deletePowerPlantPlanById(String id)
    {
        return powerPlantPlanMapper.deletePowerPlantPlanById(id);
    }
}
